import request from '@/config/request.js';

// 获取课程列表
export const courseList = (params) => request.get('/app_api/courseList', params)

// 获取词典列表
export const learningMaterialsList = (params) => request.get('/app_api/learningMaterialsList', params)

// 用户课程绑定接口
export const insertCourseBinding = (id) => request.post('/app_api/insertCourseBinding/' + id)

// 查用户绑定课程
export const selectCourseBinding = () => request.get('/app_api/selectCourseBinding/')

// 随机查课程下未学单词 1条数据-可
export const learningMaterialsListById = (id) => request.get('/app_api/learningMaterialsList/' + id)

// 课程重新学习
export const courseRelearn = (id) => request.get('/app_api/courseRelearn/' + id)

// 查询学习资料详情
export const learningMaterials = (id) => request.get('/app_api/learningMaterials/' + id)

// 课程学习情况添加
export const insertCourseLearning = (params) => request.post('/app_api/insertCourseLearning', params)

// 单词测试接口
export const learningMaterialsTest = (params) => request.get('/app_api/learningMaterialsTest', params)

